/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainFrame.java
 *
 * Created on Aug 22, 2012, 7:27:41 PM
 */

package GUI;

/**
 *
 * @author CongDanh
 */
public class MainFrame extends javax.swing.JFrame {

    /** Creates new form MainFrame */
    public MainFrame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        DesktopPane = new javax.swing.JDesktopPane();
        jToolBar1 = new javax.swing.JToolBar();
        jlbThongTinDangNhap = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jmHeThong = new javax.swing.JMenu();
        jmiDanhSachDaiLy = new javax.swing.JMenuItem();
        jmPhongBan = new javax.swing.JMenu();
        jmiDanhSachPhongBan = new javax.swing.JMenuItem();
        jmiThemXoaCapNhatPhongBan = new javax.swing.JMenuItem();
        jmNhanVien = new javax.swing.JMenu();
        jmiThemXoaCapNhatNhanVien = new javax.swing.JMenuItem();
        jmNhanVien1 = new javax.swing.JMenu();
        jmiThemXoaCapNhatNhanVien1 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jmiLapPhieuXuatHang = new javax.swing.JMenuItem();
        jmiThemLoaiDaiLy = new javax.swing.JMenuItem();
        jmiTiepNhanPhieuThuTien = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jmiBaoCaoDoanhSoThang = new javax.swing.JMenuItem();
        jmThayDoi = new javax.swing.JMenu();
        jmiQuiDinhChung = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        DesktopPane.setBackground(new java.awt.Color(102, 153, 255));

        jToolBar1.setRollover(true);
        jToolBar1.setPreferredSize(new java.awt.Dimension(20, 20));

        jlbThongTinDangNhap.setText("Bạn chưa đăng nhập.");
        jToolBar1.add(jlbThongTinDangNhap);

        jmHeThong.setText("Hệ Thống");

        jmiDanhSachDaiLy.setText("Danh Sách Các Cửa Hàng");
        jmiDanhSachDaiLy.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiDanhSachDaiLyActionPerformed(evt);
            }
        });
        jmHeThong.add(jmiDanhSachDaiLy);

        jmPhongBan.setText("Phòng Ban");

        jmiDanhSachPhongBan.setText("Danh Sách Phòng Ban");
        jmiDanhSachPhongBan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiDanhSachPhongBanActionPerformed(evt);
            }
        });
        jmPhongBan.add(jmiDanhSachPhongBan);

        jmiThemXoaCapNhatPhongBan.setText("Thêm Xóa Cập Nhật Phòng Ban");
        jmiThemXoaCapNhatPhongBan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiThemXoaCapNhatPhongBanActionPerformed(evt);
            }
        });
        jmPhongBan.add(jmiThemXoaCapNhatPhongBan);

        jmHeThong.add(jmPhongBan);

        jmNhanVien.setText("Nhân Viên");

        jmiThemXoaCapNhatNhanVien.setText("Thêm Xóa Cập Nhật Nhân Viên");
        jmiThemXoaCapNhatNhanVien.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiThemXoaCapNhatNhanVienActionPerformed(evt);
            }
        });
        jmNhanVien.add(jmiThemXoaCapNhatNhanVien);

        jmHeThong.add(jmNhanVien);

        jmNhanVien1.setText("Khách Hàng");

        jmiThemXoaCapNhatNhanVien1.setText("Thêm Xóa Cập Nhật Khách Hàng");
        jmiThemXoaCapNhatNhanVien1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiThemXoaCapNhatNhanVien1ActionPerformed(evt);
            }
        });
        jmNhanVien1.add(jmiThemXoaCapNhatNhanVien1);

        jmHeThong.add(jmNhanVien1);

        jMenuBar1.add(jmHeThong);

        jMenu2.setText("Tiếp Nhận");

        jMenuItem1.setText("Tiếp Nhận Cửa Hàng");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem1);

        jmiLapPhieuXuatHang.setText("Tiếp Nhận Phiếu Xuất Hàng");
        jmiLapPhieuXuatHang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiLapPhieuXuatHangActionPerformed(evt);
            }
        });
        jMenu2.add(jmiLapPhieuXuatHang);

        jmiThemLoaiDaiLy.setText("Tiếp Nhận Phiếu Nhập Hàng");
        jmiThemLoaiDaiLy.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiThemLoaiDaiLyActionPerformed(evt);
            }
        });
        jMenu2.add(jmiThemLoaiDaiLy);

        jmiTiepNhanPhieuThuTien.setText("Tiếp Nhận Phiếu Thu Tiền");
        jmiTiepNhanPhieuThuTien.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiTiepNhanPhieuThuTienActionPerformed(evt);
            }
        });
        jMenu2.add(jmiTiepNhanPhieuThuTien);

        jMenuBar1.add(jMenu2);

        jMenu1.setText("Báo Cáo");

        jmiBaoCaoDoanhSoThang.setText("Báo Cáo Doanh Số Tháng");
        jmiBaoCaoDoanhSoThang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiBaoCaoDoanhSoThangActionPerformed(evt);
            }
        });
        jMenu1.add(jmiBaoCaoDoanhSoThang);

        jMenuBar1.add(jMenu1);

        jmThayDoi.setText("Thay Đổi");

        jmiQuiDinhChung.setText("Thay Đổi Qui Định Chung");
        jmiQuiDinhChung.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiQuiDinhChungActionPerformed(evt);
            }
        });
        jmThayDoi.add(jmiQuiDinhChung);

        jMenuBar1.add(jmThayDoi);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jToolBar1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(DesktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(0, 260, Short.MAX_VALUE)
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addComponent(DesktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE)
                    .addGap(23, 23, 23)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jmiDanhSachDaiLyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiDanhSachDaiLyActionPerformed
        // TODO add your handling code here:
        DanhSachCuaHangInternalFrame frm = new DanhSachCuaHangInternalFrame();
        frm.setVisible(true);
        this.DesktopPane.add(frm);
    }//GEN-LAST:event_jmiDanhSachDaiLyActionPerformed

    private void jmiThemXoaCapNhatPhongBanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiThemXoaCapNhatPhongBanActionPerformed
        // TODO add your handling code here:
        ThemXoaCapNhatPhongBanInternalFrame frm = new ThemXoaCapNhatPhongBanInternalFrame();
        frm.setVisible(true);
        this.DesktopPane.add(frm);
    }//GEN-LAST:event_jmiThemXoaCapNhatPhongBanActionPerformed

    private void jmiThemXoaCapNhatNhanVienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiThemXoaCapNhatNhanVienActionPerformed
        // TODO add your handling code here:
        ThemXoaCapNhatNhanVienInternalFrame frm = new ThemXoaCapNhatNhanVienInternalFrame();
        frm.setVisible(true);
        this.DesktopPane.add(frm);
    }//GEN-LAST:event_jmiThemXoaCapNhatNhanVienActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        // TODO add your handling code here:
        TiepNhanCuaHangInternalFrame frm = new TiepNhanCuaHangInternalFrame();
        frm.setVisible(true);
        this.DesktopPane.add(frm);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jmiLapPhieuXuatHangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiLapPhieuXuatHangActionPerformed
        // TODO add your handling code here:
        //        LapPhieuXuatHangInternalFrame frm = new LapPhieuXuatHangInternalFrame();
        //        frm.setVisible(true);
        //        this.DesktopPane.add(frm);
        ThemPhieuXuatHangInternalFrame frm = new ThemPhieuXuatHangInternalFrame();
        frm.setVisible(true);
        this.DesktopPane.add(frm);
    }//GEN-LAST:event_jmiLapPhieuXuatHangActionPerformed

    private void jmiTiepNhanPhieuThuTienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiTiepNhanPhieuThuTienActionPerformed
        // TODO add your handling code here:
        LapPhieuThuTien frm = new LapPhieuThuTien();
        frm.setVisible(true);
        this.DesktopPane.add(frm);
    }//GEN-LAST:event_jmiTiepNhanPhieuThuTienActionPerformed

    private void jmiThemLoaiDaiLyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiThemLoaiDaiLyActionPerformed
        // TODO add your handling code here:
        ThemPhieuNhapHangInternalFrame frm = new ThemPhieuNhapHangInternalFrame();
        frm.setVisible(true);
        this.DesktopPane.add(frm);
    }//GEN-LAST:event_jmiThemLoaiDaiLyActionPerformed

    private void jmiBaoCaoDoanhSoThangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiBaoCaoDoanhSoThangActionPerformed
        // TODO add your handling code here:
        BaoCaoDoanhSoInternalFrame frm = new BaoCaoDoanhSoInternalFrame();
        frm.setVisible(true);
        this.DesktopPane.add(frm);
    }//GEN-LAST:event_jmiBaoCaoDoanhSoThangActionPerformed

    private void jmiQuiDinhChungActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiQuiDinhChungActionPerformed
        // TODO add your handling code here:
        ThayDoiQuiDinhChungInternalFrame frm = new ThayDoiQuiDinhChungInternalFrame();
        frm.setVisible(true);
        this.DesktopPane.add(frm);
    }//GEN-LAST:event_jmiQuiDinhChungActionPerformed

    private void jmiThemXoaCapNhatNhanVien1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiThemXoaCapNhatNhanVien1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jmiThemXoaCapNhatNhanVien1ActionPerformed

    private void jmiDanhSachPhongBanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiDanhSachPhongBanActionPerformed
        DanhSachPhongBanInternalFrame frm = new DanhSachPhongBanInternalFrame();
        frm.setVisible(true);
        this.DesktopPane.add(frm);
    }//GEN-LAST:event_jmiDanhSachPhongBanActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainFrame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JDesktopPane DesktopPane;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JLabel jlbThongTinDangNhap;
    private javax.swing.JMenu jmHeThong;
    private javax.swing.JMenu jmNhanVien;
    private javax.swing.JMenu jmNhanVien1;
    private javax.swing.JMenu jmPhongBan;
    private javax.swing.JMenu jmThayDoi;
    private javax.swing.JMenuItem jmiBaoCaoDoanhSoThang;
    private javax.swing.JMenuItem jmiDanhSachDaiLy;
    private javax.swing.JMenuItem jmiDanhSachPhongBan;
    private javax.swing.JMenuItem jmiLapPhieuXuatHang;
    private javax.swing.JMenuItem jmiQuiDinhChung;
    private javax.swing.JMenuItem jmiThemLoaiDaiLy;
    private javax.swing.JMenuItem jmiThemXoaCapNhatNhanVien;
    private javax.swing.JMenuItem jmiThemXoaCapNhatNhanVien1;
    private javax.swing.JMenuItem jmiThemXoaCapNhatPhongBan;
    private javax.swing.JMenuItem jmiTiepNhanPhieuThuTien;
    // End of variables declaration//GEN-END:variables

}
